package com.space.school.services;

import com.space.school.domain.Category;
import com.space.school.domain.User;
import com.space.school.utils.PageBean;

import java.util.List;
import java.util.Map;

public interface CategoryService {
    PageBean<Category> search(int currentPage, int pageSize, Map<String, String[]> map);

    boolean insert(String category_name, String category_type);

    boolean isInsert(String category_name);

    void delete(int category_id);

    public void update(Category category);
    Category findById(int category_id);
}